<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./style.css">
</head>
<body>
    <div class="container">
        <h2>登录</h2>
        <input type="text" placeholder="用户名" id="text">
        <input type="password" placeholder="密码" id="pwd">
        <button onclick="onclick()">登录</button>
      </div>
      <script>
        function onclick(){
            const text = document.getElementById("text").value;
            const password = document.getElementById("pwd").value;
        }
        
      </script>
</body>
</html>